package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void save(Employee employee, Long[] ids);

    void delete(Long id);
    void update(Employee employee, Long[] ids);
    Employee get(Long id);
    List<Employee> getList();
    PageInfo<Employee> query(EmployeeQueryObject qo);

    Employee login(String username, String password);

    List<Permission> getPermissions(Long eId);

    void exportXls(ServletOutputStream outputStream) throws IOException;

    void insert(Employee employee);

    void importXls(MultipartFile file) throws IOException;
}
